package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.TravelReview;
import cn.wolfcode.trip.base.query.TravelReviewQueryObject;

import java.util.List;

public interface TravelReviewMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TravelReview record);

    TravelReview selectByPrimaryKey(Long id);

    List<TravelReview> selectAll();

    int updateByPrimaryKey(TravelReview record);

    /**
     * 查询某个游记下的所有评论
     * @param qo
     * @return
     */
    List selectCommentById(TravelReviewQueryObject qo);
}